import { defineStore} from 'pinia';
export const useTokenStore = defineStore('token', {
  state: ()=>{
    return {token: '',userInfo:{}}
  },
  getters: {
    getToken: (state)=>state.token,
    getUserName: (state)=>state.userInfo.adminName
  },
  actions: {
    setToken(payload){
      console.log("1231");
      // 
      this.token = payload;
    }
  }
})